import http from "@/utils/request"

export default {
	doLogin: {
		method: `passport.login.index`,
		name: "用户登录",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	sendCode: {
		method: `passport.login.sendCode`,
		name: "发送手机验证码",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	resetPassword: {
		method: `passport.login.resetPassword`,
		name: "重置密码",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
}
